<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>平安家校系统运维平台</title>
<link href="${pageContext.request.contextPath}/dwz/themes/css/login.css" rel="stylesheet" type="text/css" />
<script src="${pageContext.request.contextPath}/dwz/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/script/des.js" charset="UTF-8" type="text/javascript"></script>
</head>
<script type="text/javascript">
function checkLogin(){
	if($("#account").val().replace(/^\s\s*/, '').replace(/\s\s*$/, '')==""){
		alert("请输入用户名");
		$("#account").focus();
		return false;
	}
	
	if($("#password").val().replace(/^\s\s*/, '').replace(/\s\s*$/, '')==""){
		alert("请输入密码");
		$("#password").focus();
		return false;
	}
	
	if($("#captcha").val()==""){
		alert("请输入验证码");
		$("#captcha").focus();
		return false;
	}
	
	if(true){
		$("#account").val(encrypt($("#account").val(),"${csrfToken}"));
		$("#password").val(encrypt($("#password").val(),"${csrfToken}"));
		return true;
	}
	return false;
}

function clearBlank(obj){
	obj.value=obj.value.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}

</script>
<body>
	<div id="login">
		<div id="login_header" >
			<h1 class="login_logo">
				<a href="javascript:void(0);"><img src="${pageContext.request.contextPath}/dwz/themes/default/images/login_logo.png" /></a>
			</h1>
			<div class="login_headerContent">
				<div class="navList">
					<ul>
						<li><a href="javascript:alert('暂未开放');">设为首页</a></li>
						<li><a href="javascript:alert('暂未开放');">反馈</a></li>
						<li><a href="javascript:alert('暂未开放');" target="_blank">帮助</a></li>
					</ul>
				</div>
				<h2 class="login_title"><img src="${pageContext.request.contextPath}/dwz/themes/default/images/login_title.png" /></h2>
			</div>
		</div>
		<div id="login_content">
			<div class="loginForm">
				<div class="error">&nbsp;&nbsp;${errorMsg }</div>
				<form action="login_login.action" method="post" onsubmit="return checkLogin()">
					<p>
						<label>用户名：</label>
						<input id="account" type="text" name="account" maxlength="11" size="20" class="login_input" onblur="clearBlank(this)" value="${account }" autocomplete="off"/>
					</p>
					<p>
						<label>密码：</label>
						<input id="password" type="password" name="password"  maxlength="20" class="login_input" onblur="clearBlank(this)" autocomplete="off"/>
					</p>
					<p>
						<label>验证码：</label>
						<img src="${pageContext.request.contextPath}/dmp.images" onclick="this.src='${pageContext.request.contextPath}/dmp.images?d='+new Date()*1" />
						<input id="captcha" type="text" name="captcha" size="2" maxlength="4" class="login_input" onblur="clearBlank(this)" autocomplete="off"/>
					</p>
					<p>
						<div class="login_bar">
							<input class="sub" type="submit" value=" " />
						</div>
					</p>
					
				</form>
			</div>
			<div class="login_banner"><img src="${pageContext.request.contextPath}/dwz/themes/default/images/login_banner.jpg" /></div>
			<div class="login_main">
				<ul class="helpList">
					<li><a href="#">忘记登录密码如何处理？</a></li>
					<li><a href="#">如何防范帐号被盗用？</a></li>
				</ul>
				<div class="login_inner">
					<p>系统运维平台（SOP）可以实现对所有核心资源（学校、设备、用户等）的全局管理</p>
					<p>同时是对所有业务数据进行运营分析的监管平台</p>
				</div>
			</div>
		</div>
		<div id="login_footer">
			平安家校 版权所有 Copyright &copy; 2011-2014 pajx.com.cn Inc. All Rights Reserved. 豫ICP备13020382号
		</div>
	</div>
</body>
</html>
